/**
 * 将数组乱序
 * @param arr
 * @returns
 */
export const shuffle = (arr: any[]) => {
  let len = arr.length;
  while (len) {
    const random = Math.floor(Math.random() * len--);
    [arr[len], arr[random]] = [arr[random], arr[len]];
  }
  return arr;
};
